import React from 'react'
import {BrowserRouter, Routes, Route, Navigate} from 'react-router-dom'
import Login from './pages/Login'
import Admin from './pages/Admin'
import './App.css';

function App() {
  return (
    <BrowserRouter>
      <Routes>
        <Route path='/login' element={<Login/>}></Route>
        <Route path='/*' element={<Admin/>}></Route>
        <Route path='/' element={<Navigate to="/home"/>}></Route>
      </Routes>
    </BrowserRouter>
  );
}

export default App;
